﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.WindowsAzure.StorageClient;

namespace PC.AzureMultiApp.Storage
{
    public class AzureCounterEntity : TableServiceEntity
    {
        public AzureCounterEntity()
            : base(Guid.NewGuid().ToString(), Guid.NewGuid().ToString())
        {
        }

        public AzureCounterEntity(string partitionKey, string rowKey)
            : base(partitionKey, rowKey)
        {
        }

        public long EventTickCount { get; set; }

        public string RoleInstance { get; set; }

        public string CounterName { get; set; }

        public double CounterValue { get; set; }

        public DateTime EventDateTime
        {
            get { return new DateTime(EventTickCount); }
        }
        
    }
}
